package com.chen.learnknowledge.entity;

import com.chen.learnknowledge.entity.Staff;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    //一个部门对应多个员工 一对多
    private Integer id;
    private String departmentName;
    private List<Staff> staffs;
}
